﻿@model ITProject.WebUI.Models.Project.ProjectMenuViewModel
@using ITProject.Domain
<table id="PoleU">
@if (Model.Role==UserRole.Supervisor)
{
<tr>
    <td >
         @Html.ActionLink("Panel administracyjny", MVC.ProjectAdmin.ActionNames.Index, MVC.ProjectAdmin.Name, new { projectName = Model.ProjectName }, new { @class = "menuCBig" })
    
    </td>
</tr>
}
@if (Model.Role == UserRole.Supervisor || Model.Role == UserRole.Manager)
{
<tr>
    <td >
         @Html.ActionLink("Panel lidera", MVC.ProjectTeamLeader.ActionNames.Index, MVC.ProjectTeamLeader.Name, new { projectName = Model.ProjectName }, new { @class = "menuCBig" })
    
    </td>
</tr>
}
@if (Model.Role != UserRole.NoRole)
{
<tr>
    <td >
         @Html.ActionLink("Panel uczestnika", MVC.ProjectUser.ActionNames.Index, MVC.ProjectUser.Name, new { projectName = Model.ProjectName }, new { @class = "menuCBig" })
    </td>
</tr>
}
<tr>
    <td >
        @Html.ActionLink("Strona projektu", MVC.Project.ActionNames.Project, MVC.Project.Name, new { projectName = Model.ProjectName }, new { @class = "menuCBig" })
    </td>
</tr>
<tr>
    <td >
         @Html.ActionLink("Uczestnicy", MVC.Project.ActionNames.ProjectUsers, MVC.Project.Name, new { projectName = Model.ProjectName }, new { @class = "menuCBig" })
    </td>
</tr>
<tr>
    <td >
         @Html.ActionLink("Zespoły", MVC.Project.ActionNames.ProjectTeams, MVC.Project.Name, new { projectName = Model.ProjectName }, new { @class = "menuCBig" })
    </td>
</tr>
<tr>
    <td  >
        @Html.ActionLink("Wersje", MVC.Project.ActionNames.ProjectReleases, MVC.Project.Name, new { projectName = Model.ProjectName }, new { @class = "menuCBig" })
    </td>
</tr>
<tr>
    <td  >
        @Html.ActionLink("Funkcjonalności", MVC.Project.ActionNames.ProjectFeatures, MVC.Project.Name, new { projectName = Model.ProjectName }, new { @class = "menuCBig" })

    </td>
</tr>
</table>